For all of you ML programmers that get source code in sequential file format and need it in BASIC editor format. Splifix reformats the source files, adding line numbers and, if needed, splitting the files down into manageable chunks of from 32 to 120 disk block files. You specify the name of the file to be broken down. Splifix will create the output file name/s.
You can specify that the input files be converted to PETSCII if desired, and also strip consecutive spaces. This is useful for files that have many blank lines that serve only to waste space. In the case of files that are split up, line numbering resumes where it left off in successive files. I use a much modified version of LADS 128, which I call EGads. Thus some of the things Splifix does is with that format in mind. The semi-colon (;) character is used as a comment designator, and when Splifix encounters it in a file, it moves the character one space back, and pads out the file to column 25, aligning comments in that column. The line numbers are accounted for in this padding. This may cause a need for editing if you do not strip consecutive spaces.
Splifix buffers the data as it creates it, meaning only disk input is going on during execution. You will see dots appearing across the screen as Splifix does its job. Each dot represents 1 line of the file processed. If you press the CMDR key during execution, the file is saved, and processing is stopped. When the specified file size is reached, Splifix saves the file, makes the next filename, opens that file, resets the pointers, and starts again. When finished, just load and edit the source file.
I have included the source file, which was compiled using Abacus' BASIC 128, a very fine BASIC compiler. If you want, feel free to edit and make changes that will make the resulting source files more accomodating to your assembler. One idea I toyed with was a function to create self-printing documentation files from sequential text files. Your imagination is your only limit. If you have any questions, or feel impelled to tell me I am the greatest thing since sliced bread, drop me a line on GEnie. My GEmail address is ED.BELL. I'm there to answer questions several times a day too. egb
P.S. The high version number reflects my own development stages, not how many versions have been unleashed on the public.